
function Timer(start) {
  if (start === true) {
    this.start();
  }
}

Timer.prototype = {
  start: function () {
    this.start = new Date();
  },

  stop: function () {
    return (((new Date()).getTime() - this.start.getTime())/1000);
  }
};

exports.Timer = Timer;
